package net.onecloud.onecloud.utils;

import android.content.Context;
import android.support.design.widget.AppBarLayout;
import android.support.v7.widget.Toolbar;

/**
 * Created by zaizai on 16/4/17.
 */
public class ToolUtils {

    public static void clearStateBar(Toolbar toolbar, Context context) {
        AppBarLayout.LayoutParams params = (AppBarLayout.LayoutParams) toolbar.getLayoutParams();
        params.setMargins(0, StatusBarUtils.getStatusHeight(context), 0, 0);
        toolbar.setLayoutParams(params);
    }
}
